package org.seckill.service.impl;

import org.seckill.dao.SuccessKilledDao;
import org.seckill.entity.SuccessKilled;
import org.seckill.service.SuccessKilledService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: zhangyingxuan
 * @Date: 2018/9/19 下午3:24
 */
@Service
public class SuccessKilledServiceImpl implements SuccessKilledService {

    @Autowired
    private SuccessKilledDao successKilledDao;

    @Override
    public int insert(SuccessKilled successKilled) {
        return successKilledDao.insertSuccessKilled(successKilled.getSeckillId(), successKilled.getUserPhone());
    }
}
